/**  
 * All rights Reserved, Designed By www.beonelot.com
 * @Package: com.bccah.modlib.dbdo.mapper.DO
 * @Filename: AcsControlBlockInfoDO.java
 * @Description: TODO(ACS_CONTROL_BLOCK_INFO表对象)
 * @author: 金鑫智慧
 * @date: 2020-04-03
 * @version: V1.0
 * @Copyright: 2018 www.beonelot.com Inc. All rights reserved.
 * 注意：本内容仅限于重庆金鑫智慧科技有限公司内部传阅，禁止外泄以及用于其他的商业目的
 */
package com.jinxin.platform.cdacsrecord.core.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * TODO(AcsControlBlockInfoVO)
 * @Classn: AcsControlBlockInfoVO
 * @author SY
 * @date 2020-04-03
 */
@Data
public class AcsControlBlockInfoVO {


    private String blockId;

    /**
     * 名称
     */
    @NotBlank(message = "楼栋名称不能为空")
    private String blockName;

    /**
     * 楼栋描述
     */
    @NotBlank(message = "楼栋描述不能为空")
    private String blockDesc;

    /**
     * 大楼地址
     */
    @NotBlank(message = "楼栋地址不能为空")
    private String blockAddress;

    /**
     * 楼层数量
     */
    @Min(1)
    private Integer blockFloor;

    /**
     * 添加时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createTime;

    /**
     * 状态 0正常
     */
    private String state;

    /**
     * 小区id
     */
    private String companyId;

    /**
     * 楼栋编号
     */
    private String blockNo;

    /**
     * 楼栋类型 1：出入口；2：楼栋
     */
    private Integer blockType;
    /**
     * 小区编号
     */
    private String housingEstateId;


}
